package com.lcq.study.jvm.leijiazai;

/**
 * @ClassName Test1
 * @Description
 * @Author lichuanqi
 * @Date 2022/1/28 16:08
 * @Version 1.0
 **/
public class Test3 {
    public static void main(String[] args) {
        System.out.println(Test3_A.num1);
        System.out.println(Test3_A.num2);
    }
}

class Test3_A{
    public static int num1 = 0;
    public static Test3_A object = new Test3_A();
    public static int num2 = 0;


    static {
        System.out.println("Test3_A static code");
    }

    public Test3_A(){
        num1 = 1;
        num2 = 2;
    }
}
